# -*-coding:utf-8-*-

with open('H:\\彩云之南.mp3', 'rb') as tmg:
    content = tmg.read()
    lon = len(content)
    print(lon)
    begin = int(((24 + 7) / (3 * 60 + 51)) * lon // 1)
    # 测试发现MP3剪辑要减去前奏，一般是12秒，也就是在节点的位置上在加上12秒
    new_mp3 = content[begin:]
    with open('H:\\彩云之南(fuben2).mp3', 'wb') as data:
        data.write(new_mp3)
    print('ok')
